<?php

class Application_Form_AuthenticationChangePassword extends Zend_Form
{

	public function init()
	{
		$this->setAction('accountinfo');
		$this->setMethod('post');

		$userid = new Zend_Form_Element_Hidden('id');


		$password = new Zend_Form_Element_Password('password');
		$password->setLabel('new password');
		$password->addFilter('StripTags');
		$password->setRequired(true);

		$passwordrepeat = new Zend_Form_Element_Password('passwordrepeat');
		$passwordrepeat->setLabel('repeat password');
		$passwordrepeat->addFilter('StripTags');
		$passwordrepeat->setRequired(true);
		$passwordrepeat->addValidator('Identical', false, array('token' => 'password'));
		$passwordrepeat->addErrorMessage('password must be identical!');

		$submit = new Zend_Form_Element_Submit('change');
		$submit->setLabel('Change');

		$this->addElements(array($userid, $password, $passwordrepeat, $submit));
	}


}

